package com.thientan.model

import java.util.Date

import com.thientan.utils.Constants
import com.thientan.utils.Utility

class ThongKePhieuThu {
	static mapping = {
		table 'THONG_KE_PHIEU_THU'
		id generator : 'increment'
		columns { id column : 'THONG_KE_PHIEU_THU_ID' }
	}

	static transients = ['ngayLapText']

	String getNgayLapText() {
		new java.text.SimpleDateFormat(Constants.DEFAULT_DATE_FORMAT).format(ngayLap)
	}
	
	Date ngayLap = Utility.dateWithoutTime()
	Long soPhieuGiao = 0
	Long soPhieuNhan = 0
	Long soPhieuTraHet = 0
	Long soPhieuCty = 0
	Long soPhieuTraHang = 0
	Long soPhieuDenHang = 0
}
